import javax.sound.midi.*;
public class MusicTest1 {
    public void play() throws Exception{
        try {
            Sequencer sequencer = MidiSystem.getSequencer();
            System.out.println("Successfully got a sequencer");

        }catch (MidiUnavailableException ex){
            System.out.println("Bummer");
        }
    } //关闭播放

    public static void main(String[] args) throws Exception {
        MusicTest1 mt = new MusicTest1();
        mt.play();
    } //close main
} //关闭类

